package com.pengxun.manager.service.system;

import com.pengxun.manager.model.system.Menu;
import com.pengxun.manager.model.system.Permission;
import com.pengxun.manager.vo.PermissionVO;
import com.szeastroc.common.jdbc.page.Page;

import java.util.List;


public interface  PermissionService {
   public int insert(Permission permission);
   
   public int update(Permission permission);
   
   public int delete(Integer permissionId);
   
   public Page findByPage(PermissionVO permission);
   
   public Permission findByPermissionId(Integer permissionId);
   
   public Permission findByPermissionCode(String permissionCode);
   
   public Permission selectLastPermission();
   
   public List<Permission> findByMenuCode(String menuCode);
   
   public int updateStatus(Integer permissionId,Integer status);
   
   public int deleteByMenuCode(String menuCode);

   public int deleteAll();

   public void syncPermissions(List<Menu> list);

}
